package com.jack.helloworld.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.jack.helloworld.R;


public class ToFFragment extends Fragment {

    TextView tvReceiveActivity;


    public ToFFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_to_f, container, false);
        tvReceiveActivity = (TextView) view.findViewById(R.id.tvReceiveActivity);

        String inputString = getArguments().getString("inputString");
        tvReceiveActivity.setText(getString(R.string.receive_message) + inputString);

        return view;
    }

}
